package com.mobilepoc.jersey;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.mobilepoc.jersey.model.TransactionDetail;
import com.mobilepoc.jersey.storage.TransactionDetailStorage;

@Path("/transactiondetail")
public class TransactionDetailRetriever{

   
   @GET
   @Path("/{transactionid}")
   @Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
   public TransactionDetail getOneAccount(@PathParam("transactionid") String transactionid){
	   return TransactionDetailStorage.getDetail(transactionid);
   }
   
}
